package com.ants.boot.wx.controller;

import com.ants.boot.core.Response;
import com.ants.boot.wx.dto.wxarticlecomment.AddCommentDto;
import com.ants.boot.wx.service.WxArticleCommentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 蚂蚁会花呗
 * @date 2022/6/7 11:17
 */
@RestController
@RequestMapping("wx/articlecomment")
@Api(tags = "朋友圈评论")
public class WxArticleCommentController {

    @Autowired
    private WxArticleCommentService wxArticleCommentService;


    @PostMapping("add_comment")
    @ApiOperation(value = "微信评论",notes = "评论回复朋友圈")
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功！")
    })
    public Response addComment(@RequestBody @Validated AddCommentDto dto){
        return Response.okData(wxArticleCommentService.getIdAddComment(dto));
    }

}
